/*
* 公共布局
*/

// 定义变量
$body_bgcolor:#003366;
$layout_height:21.6rem;
$layout_body_padding:0 0 0 0.6rem;
$left_width:5rem;
$right_width:10.04rem;
$middle_ml:0.6rem;
$middle_mr:0rem;
$header_fontSize:0.46rem;

$sub_color:#99CCFF;

html,
body {
  height: 100%;
  background: $body_bgcolor;
  font-size: 0.3rem;
}

code {
  overflow-y: auto;
  max-height: 5rem;
  min-height: 1rem;
  margin-bottom: 0.2rem;
}

pre {
  position: relative;
  padding-left: 0.4rem;
  box-sizing: border-box;
}

.lang-type {
  padding-left: 0.4rem;
  padding-bottom: 0.1rem;
}

.copy_btn {
  // display: none;
  border: 0;
  position: absolute;
  right: 0.5rem;
  top: 0;
  font-size: 0.3rem;
  color: #4d4d4d;
  background-color: white;
  padding: 0.1rem 0.2rem;
  margin: 8px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
}

i,
cite {
  font-style: normal;
}

.loading-success {
  display: block !important;
}

.header {
  position: relative;
  color: #fff;
  font-size: 0.6rem;
  font-family: Microsoft YaHei;
  font-weight: bold;
  height: 1.5rem;
  line-height: 1.5rem;
  display: flex;
  justify-content: center;
}



.time1 {
  font-size: 0.36rem;
}

.logo {
  position: absolute;
  top: 0.05rem;
  left: 2rem;
}

.layout-container {
  display: none;
  position: relative;
  height: 100%;
  // height: $layout_height;
  /* height: 100%; */
  /* min-height: 21.6rem; */
}

.layout-body {
  color: #fff;
  padding: $layout_body_padding;
  position: absolute;
  left: 0;
  right: 0;
  top: 1.5rem;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.layout-body .flex-left {
  -ms-flex-preferred-size: $left_width;
  flex-basis: $left_width;
  overflow: hidden;
  // margin-top: 0.25rem;
}

.layout-body .flex-mid {
  margin-left: $middle_ml;
  margin-right: $middle_mr;
  flex: 1;
  padding-right: 0.6rem;
  overflow-y: auto;
}

.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.flex-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;

  >div {
    width: 100%;
  }

  pre {
    width: 100%;
  }
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex-column {
  flex-direction: column
}


/* 水平居中 */

.justify-center {
  justify-content: center;
}


/* 垂直居中 */

.align-center {
  align-items: center;
}

.just-between {
  justify-content: space-between;
}

.just-around {
  justify-content: space-around;
}

.common-panel {
  overflow: hidden;
  background: #05203a;
  border-radius: 0.1rem;
  margin-bottom: 0.4rem;

  .panel-header {
    padding-left: 0.3rem;
    height: 1.4rem;
    line-height: 1.4rem;
    font-size: 0.8rem;
    position: relative;
    font-family: 'YouSheBiaoTiHei';
  }

  .panel-body {
    padding: 0 0.3rem 0.3rem 0.3rem;

    .desc {
      background: #f1f1f1;
      color: #333;
      padding: 0.15rem;
      margin-bottom: 0.2rem;
      box-shadow: 0 0 10px rgba(0, 0, 0, .5) inset;
      border-radius: 0.1rem;
    }
  }
}

.w50 {
  width: 50%;
}

.help {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  cursor: pointer;

  i {
    margin-right: 0.1rem;
    font-size: 0.5rem;
  }

  &:hover {
    color: #1e9fff;
  }
}

.left-nav {
  display: flex;
  flex-direction: column;

  .item {
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    background: $sub_color;
    margin-bottom: 0.1rem;
    color: #333;

    &:hover {
      opacity: 0.8;
    }
  }
}

.uptime {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  color: #fff;
  display: flex;
  align-items: center;

  i {
    margin-right: 0.1rem;
    font-size: 0.5rem;
  }
}

.chart{
  height: 100%;
}